package com.lanchetech.dao;

import com.lanchetech.entity.CourseCommentGood;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CourseCommentGoodMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CourseCommentGood record);

    int insertSelective(CourseCommentGood record);

    CourseCommentGood selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CourseCommentGood record);

    int updateByPrimaryKey(CourseCommentGood record);

    int deleteByCourseId(@Param("courseId")Long courseId);

    CourseCommentGood findOneByCourseIdAndCommentIdAndUserId(@Param("courseId")Long courseId,@Param("commentId")Long commentId,@Param("userId")Long userId);

    List<CourseCommentGood> findAllByUserIdAndCommentIds(@Param("userId")Long userId, @Param("commentIds")List<Long> commentIds);
}